//
//  ZZCollectColorGroup.m
//  ZZBlue
//
//  Created by stonesMonkey on 2017/10/1.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZZCollectColorGroup.h"

@implementation ZZCollectColorGroup

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeObject:self.colors forKey:@"colors"];
     [aCoder encodeObject:self.reacts forKey:@"reacts"];
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        
        self.colors = [NSMutableArray arrayWithArray:[aDecoder decodeObjectForKey:@"colors"]];

        self.reacts = [NSMutableArray arrayWithArray:[aDecoder decodeObjectForKey:@"reacts"]];
    }
    return self;
}

- (NSMutableArray<UIColor *> *)colors {
    
    if (!_colors) {
        
        _colors = [NSMutableArray array];
    }
    return _colors;
}

-(NSMutableArray<NSString *> *)reacts {

    if (!_reacts) {

        _reacts = [NSMutableArray array];
    }
    return _reacts;
}

@end
